package com.ifacebox.arcsoft.face.model;

/**
 * @author znn
 */
public class FaceCompareResponse {
    private boolean success;
    private String msg;
    private FaceCompare data;

    public FaceCompareResponse() {
        super();
    }

    public FaceCompareResponse(FaceStatusResponse statusResponse) {
        this(statusResponse.isSuccess(), statusResponse.getMsg());
    }

    public FaceCompareResponse(FaceStatusResponse statusResponse, String msg) {
        this(statusResponse.isSuccess(), msg);
    }

    public FaceCompareResponse(FaceStatusResponse statusResponse, FaceCompare data) {
        this(statusResponse.isSuccess(), statusResponse.getMsg(), data);
    }

    public FaceCompareResponse(boolean success, String msg) {
        this(success, msg, null);
    }

    public FaceCompareResponse(boolean success, String msg, FaceCompare data) {
        this();
        this.setSuccess(success);
        this.setMsg(msg);
        this.setData(data);
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public FaceCompare getData() {
        return data;
    }

    public void setData(FaceCompare data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return String.format("{success=%s,msg=%s,data=%s}", this.isSuccess(), this.getMsg(), this.getData());
    }
}
